HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/modules/7.0.0-1009-aws/build/include/linux/mailbox/mtk-vcp-mailbox.h
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
/*
 * Copyright (c) 2025 MediaTek Inc.
 */

#ifndef __MTK_VCP_MAILBOX_H__
#define __MTK_VCP_MAILBOX_H__

#define MTK_VCP_MBOX_SLOT_MAX_SIZE	0x100 /* mbox max slot size */

/**
 * struct mtk_ipi_info - mailbox message info for mtk-vcp-mailbox
 * @msg: The share buffer between IPC and mailbox driver
 * @len: Message length
 * @id: This is for identification purposes and not actually used
 *	by the mailbox hardware.
 * @index: The signal number of the mailbox message.
 * @slot_ofs: Data slot offset.
 * @irq_status: Captures incoming signals for the RX path.
 *
 * It is used between IPC with mailbox driver.
 */
struct mtk_ipi_info {
	void *msg;
	u32 len;
	u32 id;
	u32 index;
	u32 slot_ofs;
	u32 irq_status;
};

#endif